home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 13 / boot-disc-1997-09.iso / HyprWire / DATA.Z / Wobble Ellipse.mdf < prev    next >
Text File  |  1997-02-04  |  2KB  |  104 lines

  1. kxKinetix
  2. kxType = kxSmalltalkJavaPlugIn
  3.  
  4. kxModuleDefinition WobblyCircle = 
  5.     {
  6.     kxPublicName = "WobblyCircle"
  7.     kxVersion = "1.0"
  8.     kxCreationTime = "01/01/97  12:26:15 PM"
  9.     kxAuthor = "Hyperwire Demonstration File"
  10.     kxLargeIcon = kxBmResType "ModIcons.dll" "WOBCIRC2" 0xFF00FF
  11.     kxSmallIcon = kxBmResType "ModIcons.dll" "WOBCIRC1" 0xFF00FF
  12.     kxSmalltalkLibraries = "shapes" 
  13.     kxSmalltalkProxyClass = CircleBundle
  14.     kxShortDescription = "Draws wobbly ellipses.  This is a demonstration of how to sub-class a Hyperwire object as a plug-in."
  15. //    kxHelpName = "CIRCLE_PROPERTIES"
  16.     kxHelpDoc = "Modules/Xtras/Samples/Xtras.html"
  17.  
  18.     kxPlugInPackage = "kinetix.hyperc1.userPlugIns"
  19.     kxPlugInClass = WobblyCirclePlugIn
  20.     kxPropertyEditors =  RedFieldsEditor LineAndFillStyleEditor OpusLabelCommentEditor ModuleStateEditor SizePositionEditor OpusColorEditor SpecialEffectsEditor PortEditor
  21.     kxLayoutViewProxyClass = CircleAuthorRep
  22.  
  23.     kxPersistentFields =
  24.         {
  25.         kxField Wobble = 
  26.             {
  27.             kxPublicName = "Wobble"
  28.             kxJavaSignature = "I"
  29.             kxAccessor = fiSetWobble
  30.             kxDescription = "Maximum amount of pixels to wobble from center."
  31.             kxDefault = 10
  32.             }
  33.         kxField Speed = 
  34.             {
  35.             kxPublicName = "Speed (milliseconds)"
  36.             kxJavaSignature = "J"
  37.             kxAccessor = fiSetSpeed
  38.             kxDescription = "Interval between wobbles in milliseconds."
  39.             kxDefault = 100
  40.             }
  41.         kxField Occilation = 
  42.             {
  43.             kxPublicName = "Oscillation"
  44.             kxJavaSignature = "i"
  45.             kxAccessor = fiSetOscillation
  46.             kxDescription = "Maximum amount of pixels to move per tick."
  47.             kxDefault = 1
  48.             }
  49.         }
  50.  
  51.     kxInputPorts =
  52.          {
  53.          kxInclude "Basic.ipt"
  54.          kxInclude "VisualComplete.ipt"
  55.          kxInclude "FillColorAndStyle.ipt"
  56.         kxPort SetSpeed =
  57.             {
  58.             kxJavaMethod = wiSetSpeed
  59.             kxJavaSignature = "(J)V"
  60.             kxPublicNames = "Set Speed" "speed (in milliseconds)" "none" 
  61.             }
  62.         kxPort GetSpeed =
  63.             {
  64.             kxJavaMethod = wiGetSpeed
  65.             kxJavaSignature = "()J"
  66.             kxPublicNames = "Get Speed" "speed (in milliseconds)" 
  67.             }
  68.         }
  69.  
  70.     kxInputPortsMenu =
  71.          {
  72.          Reset
  73.         On
  74.         Off
  75.          Toggle
  76.          kxSeparator
  77.         GetSpeed
  78.         SetSpeed
  79.         MoveBy
  80.          MoveTo
  81.         kxMenu "More" =
  82.             {
  83.             kxInclude "Basic.imn"
  84.             kxInclude "VisualComplete.imn"
  85.             kxSeparator
  86.             kxInclude "FillColorAndStyle.imn"
  87.             }
  88.         }
  89.  
  90.     kxOutputPorts =
  91.         {
  92.         kxInclude "VisualComplete.opt"
  93.         }
  94.  
  95.     kxOutputPortsMenu =
  96.         {
  97.         ButtonUp
  98.         ButtonDown
  99.         kxSeparator
  100.         kxInclude "VisualComplete.omn"
  101.         }
  102.  
  103.     }
  104.